<template>
    <div>
        <h1 class="title">
            <!-- 使用vue配置项 proxyTable 来代理请求接口 -->
            <p>
                proxyTable配置，详见 config/index.js
            </p>
        </h1>
        <hr>
        <button @click="sget">proxy请求GET</button>
        <button @click="spost">proxy请求POST</button>
    </div>
</template>

<script>
export default {
    data(){
        return {
        }
    },
    methods: {
        sget(){
            this.$axios.get('/sget/trade/wave/list', {
                params: {
                    name: 'zyl',
                    mobile: 18668232300
                }
            }).then(res => {
                console.log(res)
            }).catch(res => {
                console.log(res)
            })
        },
        spost(){
            this.$axios.post('/spost/trade/pick/hastask', {
                name: 'haha',
                types: 'string2'
            }).then(res => {
                console.log(res)
            }).catch(res => {
                console.log(res)
            })
        }
    }
}
</script>
